#ifndef __WIFIDRIVER_H
#define __WIFIDRIVER_H

#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/event_groups.h"
#include "esp_wifi.h"
#include "esp_log.h"
#include "esp_event.h"
#include "nvs_flash.h"
#include "esp_mac.h"

#ifdef __cplusplus
extern "C" {
#endif

#define STA_SSID       "C"
#define STA_PASSWORD   "00000000"
#define AP_SSID       "esp32s3"
#define AP_PASSWORD   "12345678"

extern uint16_t wifi_ip_addr[4];
extern bool wifi_ip_got_state;

void wifi_init(wifi_mode_t mode,bool useBeforeSTA);
void wifi_connect(uint8_t *ssid, uint8_t *password);
void wifi_stop(void);

extern void wifi_connect_cb();

#ifdef __cplusplus
}
#endif



#endif